package com.hustcs.mindmap.drawmap.command;

import android.graphics.Canvas;
import android.graphics.Paint;

import com.hustcs.mindmap.drawmap.Node;
import com.hustcs.mindmap.drawmap.shapes.Shape;

public class AddCommand implements Command {
	private Node node;	
	
	
	public AddCommand(Node node) {
		this.node = node;
	}

	@Override
	public void execute() {
		node.draw();
	}

	@Override
	public void undo() {
		node.undoAdd();
	}

	@Override
	public void redo() {
		node.draw();
	}

}
